package com.xframe.xdal.core.convert.factory;

import com.xframe.xdal.core.constant.DataSourceTypeEnums;
import com.xframe.xdal.core.convert.IDBTypeStrategy;

public class DBTypeStrategyFactory {
    public static IDBTypeStrategy create(DataSourceTypeEnums dataSourceTypeEnums) {

        if (DataSourceTypeEnums.MySql == dataSourceTypeEnums) {
            return new MysqlTypeStrategyFactory();
        }

        return new OracleTypeStrategyFactory();

    }
}
